package com.he1618.boot3.app;

import org.apache.commons.math3.distribution.NormalDistribution;
import org.apache.commons.math3.random.RandomDataGenerator;

public class ProbabilityDistributionExample {

    public static void main(String[] args) {
        // 正态分布
        NormalDistribution normalDistribution = new NormalDistribution(0, 1);

        // 生成随机数
        double randomValue = normalDistribution.sample();

        // 输出结果
        System.out.println("Random Value from Normal Distribution: " + randomValue);
    }
}
